package com.heima.common.exception;

import lombok.Data;

@Data
public class LeadNewsException extends RuntimeException {
    private Integer status;

    public LeadNewsException (Integer status,String message){
        super(message);
        this.status=status;
    }
    public LeadNewsException(AppHttpCodeEnum appHttpCodeEnum){
        super(appHttpCodeEnum.getMessage());
        this.status=appHttpCodeEnum.getCode();
    }
}
